package com.Java.train.business.entity.DTO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
@Getter
@Setter
@Accessors(chain = true)
public class TrainCarriageDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("车次编号")
    private String trainCode;

    @ApiModelProperty("厢号")
    private Integer idx;

    @ApiModelProperty("座位类型|枚举[SeatTypeEnum]")
    private String seatType;

    @ApiModelProperty("座位数")
    private Integer seatCount;

    @ApiModelProperty("排数")
    private Integer lineCount;

    @ApiModelProperty("列数")
    private Integer colCount;

    @ApiModelProperty("新增时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
}
